﻿namespace Socium.Science {
	class ExplicitLine {
		public readonly Vector Pivot;
		public readonly Vector Direction;

		public ExplicitLine(Vector pivot, Vector direction) {
			Pivot = pivot;
			Direction = direction;
		}

		public ImplicitLine ToImplicit() {
			var normal = Direction.Perpendicular().Normalize();
			var distance = -(normal*Pivot);

			return new ImplicitLine(normal, distance);
		}
	}
}
